$(function () {
   
});

var vm = new Vue({
	el:'#rrapp',
	data:{
		title: null,
		oaLeave: {},
		options:[
			{label:'调休',value:'调休'},
			{label:'奖励假',value:'奖励假'},
			{label:'病假',value:'病假'},
			{label:'产假',value:'产假'}
			]
	},
	methods: {
		query: function () {
			vm.reload();
		},
		add: function(){
			vm.title = "新增";
			vm.oaLeave = {};
		},
		getInfo: function(id){
			$.get(baseURL+"/oaleave/info/"+id, function(r){
                vm.oaLeave = r.oaLeave;
            });
		},
	},
	mounted:function(){
		this.getInfo($('#id').val());
	}
});